jsonp: json+填充（padding）

<script src="./02.js"></script>
<script src="./03.txt"></script>
<script src="./04.html"></script>
<script src="./05.json"></script>
<script src="http://localhost:3000/web"></script>
<script src="http://localhost:3000/goodslist"></script>
<!-- <script src="http://localhost:3000/goods"></script> -->
<!-- 
    script 无论引入什么内容，都会把它当成js来处理
    script 不受跨域资源政策的应用

 -->
<script>


    // let num=123
    // let str="abc"
    // let arr=[1,2,3,4]
    // let obj = {
    //     name: "zs"
    // }
    // function  fun(){ 
    //     console.log("fun")
    // }
    // let goods={
    //     status:200,
    //     msg:"请求成功",
    //     results:results
    // }
    // let goods={
    //     status:200,
    //     msg:"请求成功",
    //     results:[{"id":1,"picture":"https://img.alicdn.com/bao/uploaded/i2/3704112085/O1CN01od3XuL1RGyUJN2kxC_!!3704112085.jpg_200x200q90.jpg_.webp","tradeName":"懒人自热小火锅速食牛肉重庆便宜土豆粉自助网红麻辣烫酸","price":9.9,"stock":"1000"},{"id":2,"picture":"https://img.alicdn.com/bao/uploaded/i1/2201453915278/O1CN01dZolFu1orN8dFeKAj_!!0-item_pic.jpg_200x200q90.jpg_.webp","tradeName":"纯坚果零食大礼包一整箱干果类网红爆款解馋小吃休闲食品","price":9.9,"stock":"100"},{"id":3,"picture":"https://img.alicdn.com/bao/uploaded/i1/3432875581/O1CN01o2cQia1r698j723ko_!!0-item_pic.jpg_200x200q90.jpg_.webp","tradeName":"旺旺旺仔牛奶245ml*24罐装营养早餐奶学生饮料儿童复原乳","price":99.9,"stock":"10000"}]
    // }
    console.log(num);
    console.log(str);
    console.log(arr);
    console.log(obj);
    console.log(fun);

    console.log(goods);


    /* getgoods({
        status:200,
        msg:"请求成功",
        results:[{"id":1,"picture":"https://img.alicdn.com/bao/uploaded/i2/3704112085/O1CN01od3XuL1RGyUJN2kxC_!!3704112085.jpg_200x200q90.jpg_.webp","tradeName":"懒人自热小火锅速食牛肉重庆便宜土豆粉自助网红麻辣烫酸","price":9.9,"stock":"1000"},{"id":2,"picture":"https://img.alicdn.com/bao/uploaded/i1/2201453915278/O1CN01dZolFu1orN8dFeKAj_!!0-item_pic.jpg_200x200q90.jpg_.webp","tradeName":"纯坚果零食大礼包一整箱干果类网红爆款解馋小吃休闲食品","price":9.9,"stock":"100"},{"id":3,"picture":"https://img.alicdn.com/bao/uploaded/i1/3432875581/O1CN01o2cQia1r698j723ko_!!0-item_pic.jpg_200x200q90.jpg_.webp","tradeName":"旺旺旺仔牛奶245ml*24罐装营养早餐奶学生饮料儿童复原乳","price":99.9,"stock":"10000"}]
    }) */


    

    setTimeout(()=>{

        function  getgoods(results){
            console.log(results);
        }

        // 10s之后在获取资源

        // 思考script10之后再出现？？

    },10000)

</script>
<!-- <script src="http://localhost:3000/goods"></script> -->